<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:72:"/www/wwwroot/zaozao/public/../application/admin/view/statis/smssend.html";i:1596274011;s:59:"/www/wwwroot/zaozao/application/admin/view/public/head.html";i:1597211856;}*/ ?>
<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>支付宝生活缴费系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/static/admin/css/font.css">
	<link rel="stylesheet" href="/static/admin/css/xadmin.css">
	<!--<link rel="stylesheet" href="/static/admin/css/bootstrap.min.css">
	<link rel="stylesheet" href="/static/admin/js/bootstrap.min.js">-->
	
    <script src="/static/admin/js/jquery.min.js"></script>
    <script src="/static/admin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/admin/js/xadmin.js"></script>
  </head>
  <body>
    <div class="x-body" style="width:75%;margin:0 auto">
        <form class="layui-form" style="" method="post" action="#"> 
            
            <div class="layui-form-item" >
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>所属小区:
                </label>
                <div class="layui-input-inline" style="width: 240px;">
                    <select name="community_id" lay-filter="community_id" id="community_id">
                        <option value="">所属小区</option>
                        <?php foreach($communitylist as $name): ?>
                        <option value="<?php echo $name['community_id']; ?>"><?php echo $name['community_name']; ?></option>
                        <?php endforeach; ?>
                      </select>
                </div>
            </div>    
            <div class="layui-form-item">
                <label for="phone" class="layui-form-label">
                    <span class="x-red">*</span>管理员手机:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="phone" name="phone" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 240px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="money" class="layui-form-label">
                    <span class="x-red">*</span>今日收款总额:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="money" name="money" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width: 240px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="alipay" class="layui-form-label">
                    <span class="x-red">*</span>支付宝收款:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="alipay" name="alipay" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 240px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="wechat" class="layui-form-label">
                    <span class="x-red">*</span>微信收款:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="wechat" name="wechat" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 240px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="cash" class="layui-form-label">
                    <span class="x-red">*</span>现金:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="cash" name="cash" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 240px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="POS" class="layui-form-label">
                    <span class="x-red">*</span>POS机收款:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="POS" name="POS" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 240px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="roomnumber" class="layui-form-label">
                    <span class="x-red">*</span>当天缴费户数:
                </label>
                <div class="layui-input-inline">
                    <input type="number" id="roomnumber" name="roomnumber" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 240px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="rate" class="layui-form-label">
                    <span class="x-red">*</span>缴费完成率:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="rate" name="rate" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 240px;">
                </div>
            </div>
            
            <div class="layui-form-item">
                <label for="L_repass" class="layui-form-label">
                </label>
                <button  class="layui-btn" lay-filter="add" lay-submit="">
                   信息推送
                </button>
            </div>
      </form>
    </div>
    
    <script>
        layui.use('laydate', function(){
            var laydate = layui.laydate;
            
            //执行一个laydate实例
            laydate.render({
            elem: '#start' //指定元素
            ,format: 'yyyyMMdd'
            });

            //执行一个laydate实例
            laydate.render({
            elem: '#end' //指定元素
            ,format: 'yyyyMMdd'
            });
        });
    </script>
    <script>
        layui.use(['form'], function() {
            var form = layui.form
            form.on('select(community_id)', function(f){
                var url = "<?php echo url('admin/Roominfo/fetchdata'); ?>"
                $.post(url, {community_id: f.value, type: 1}, function(data) {
                    $('#group').html("")
                    var option = "<option value=''>所有组团</option>"
                    $('#group').append(option)
                    for (var i = 0; i < data.length; i++) {
                    option = "<option value='" + data[i] + "'>" + data[i] + "</option>"
                    $('#group').append(option)
                    }
                    
                    form.render('select')
                })
                
                $('#community_id').data('community_id', f.value)
            })

            form.on('select(group)', function(f){
                var data_community = $('#community_id').data('community_id')
                var get_community = "<?php if (isset($community_id)) { echo $community_id;}?>"
                var community_id = typeof data_community === 'undefined' ? get_community : data_community
                var url = "<?php echo url('admin/Roominfo/fetchdata'); ?>"
                $.post(url, {community_id: community_id, group: f.value, type: 2}, function(data) {
                    $('#building').html("")
                    var option = "<option value=''>所有楼栋</option>"
                    $('#building').append(option)
                    for (var i = 0; i < data.length; i++) {
                        option = "<option value='" + data[i] + "'>" + data[i] + "</option>"
                        $('#building').append(option)
                    }
                    $('#group').data('group', f.value)
                    form.render('select')
                })
            })

            form.on('select(building)', function(f){
                var data_community = $('#community_id').data('community_id')
                var get_community = "<?php if (isset($community_id)) { echo $community_id;}?>"
                var community_id = typeof data_community === 'undefined' ? get_community : data_community

                var data_group = $('#group').data('group')
                var get_group = "<?php if (isset($group)) { echo $group;}?>"
                var group = typeof data_group === 'undefined' ? get_group : data_group

                var url = "<?php echo url('admin/Roominfo/fetchdata'); ?>"
                $.post(url, {building: f.value, community_id: community_id, group: group, type: 3}, function(data) {
                $('#unit').html("")
                var option = "<option value=''>所有单元</option>"
                $('#unit').append(option)
                for (var i = 0; i < data.length; i++) {
                    option = "<option value='" + data[i] + "'>" + data[i] + "</option>"
                    $('#unit').append(option)
                }
                $('#building').data('building', f.value)
                form.render('select')
                })
            })

            form.on('select(unit)', function(f){
                var data_community = $('#community_id').data('community_id')
                var get_community = "<?php if (isset($community_id)) { echo $community_id;}?>"
                var community_id = typeof data_community === 'undefined' ? get_community : data_community

                var data_group = $('#group').data('group')
                var get_group = "<?php if (isset($group)) { echo $group;}?>"
                var group = typeof data_group === 'undefined' ? get_group : data_group

                var data_building = $('#building').data('building')
                var get_building = "<?php if (isset($building)) { echo $building;}?>"
                var building = typeof data_building === 'undefined' ? get_building : data_building
        
                var url = "<?php echo url('admin/Roominfo/fetchdata'); ?>"
                $.post(url, {unit: f.value, community_id: community_id, group: group, building: building, type: 4}, function(data) {
                $('#room').html("")
                var option = "<option value=''>所有房间</option>"
                $('#room').append(option)
                for (var i = 0; i < data.length; i++) {
                    option = "<option value='" + data[i] + "'>" + data[i] + "</option>"
                    $('#room').append(option)
                }
                $('#unit').data('unit', f.value)
                form.render('select')
                })
            })

        })
    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>